package com.symria.server.po;

import java.sql.Timestamp;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * IosClick entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "IOS_CLICK")
public class IosClick implements java.io.Serializable {

	// Fields

	private Integer id;
	private String appId;
	private String mac;
	private String idfa;
	private String channel;
	private String status;
	private Date createTime;
	private String openudid;
	private String clickIp;
	private String callBack;

	// Constructors

	/** default constructor */
	public IosClick() {
	}

	/** minimal constructor */
	public IosClick(Timestamp createTime) {
		this.createTime = createTime;
	}

	/** full constructor */
	public IosClick(String appId, String mac, String idfa, String channel,
			String status, Timestamp createTime, String openudid,
			String clickIp, String callBack) {
		this.appId = appId;
		this.mac = mac;
		this.idfa = idfa;
		this.channel = channel;
		this.status = status;
		this.createTime = createTime;
		this.openudid = openudid;
		this.clickIp = clickIp;
		this.callBack = callBack;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "APP_ID", length = 20)
	public String getAppId() {
		return this.appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	@Column(name = "MAC", length = 64)
	public String getMac() {
		return this.mac;
	}

	public void setMac(String mac) {
		this.mac = mac;
	}

	@Column(name = "IDFA", length = 64)
	public String getIdfa() {
		return this.idfa;
	}

	public void setIdfa(String idfa) {
		this.idfa = idfa;
	}

	@Column(name = "CHANNEL", length = 32)
	public String getChannel() {
		return this.channel;
	}

	public void setChannel(String channel) {
		this.channel = channel;
	}

	@Column(name = "STATUS", length = 8)
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_TIME", nullable = false, length = 0)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "OPENUDID", length = 128)
	public String getOpenudid() {
		return this.openudid;
	}

	public void setOpenudid(String openudid) {
		this.openudid = openudid;
	}

	@Column(name = "CLICK_IP", length = 20)
	public String getClickIp() {
		return this.clickIp;
	}

	public void setClickIp(String clickIp) {
		this.clickIp = clickIp;
	}

	@Column(name = "CALL_BACK", length = 256)
	public String getCallBack() {
		return this.callBack;
	}

	public void setCallBack(String callBack) {
		this.callBack = callBack;
	}

}